package com.example.orderservice.event;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor

public class OrderCreatedEvent {
    private Long orderId;
    private Long userId;
    private String items;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getItems() {
        return items;
    }

    public void setItems(String items) {
        this.items = items;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public OrderCreatedEvent() {
    }

    public OrderCreatedEvent(Long orderId, Long userId, String items) {
        this.orderId = orderId;
        this.userId = userId;
        this.items = items;
    }
}